Preview - 21/22 Computational Modeling Of Covid-19 Spread

Exploring NetLogo Code


The computational model that you used on the last page is created using a software called NetLogo. You can easily access the computational code in a NetLogo model. Let's try to understand the computational code that makes this model work.


Questions

Please answer the questions below.

SAQ: Open the NetLogo tab.  Look for the code that reads:

 Line 18   if (random 100) < density
Line 19    [ set pcolor green ]
Line 20  ]

Where it says pcolor green, what would happen if we wrote blue instead of green?  Write your hypothesis.


Now rewrite this part of the code to say blue instead of green. Click on setup and then on go. Describe what happens.


Was your hypothesis from the previous question correct? Why or why not?


What information could a scientist gather from this model?


Notes

These notes will appear on every page in this lesson so feel free to put anything here you'd like to keep track of.